<%@ page language="java" import="java.util.*,bookstore.database.pojo.*"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	Object cus = session.getAttribute("customer");
	if (cus == null) {
		request.getRequestDispatcher("login.jsp").forward(request,
				response);
	}
	Book book = (Book) request.getAttribute("subBook");
	List<BookType> types = (List<BookType>) new BookTypeDAO().findAll();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>显示书籍信息</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="/css/my.css">


	</head>

	<body>
		<form action="bookSubmit4.jsp" method="post">
			<table width="80%" border="0" align="center">
				<tr>
					<td>
						<div align="center"><jsp:include flush="true"
								page="head.jsp"></jsp:include></div>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="1" bordercolor="#FFCC00">
							<tr>
								<td colspan="2" class="style5">
									书籍信息
									<hr />
								</td>
							</tr>
							<tr>
								<td height="50" width="60%">
									书名：<%=book.getBname()%></td>
								<td width="300" height="300" rowspan="6">
									<img src="<%=book.getImage().getImagePath()%>" />
								</td>
							</tr>
							<tr>
								<td height="50" width="60%">
									ISBN号：<%=book.getIsbn()%></td>
							</tr>
							<tr>
								<td height="50" width="60%">
									作者：<%=book.getAuthor()%></td>
							</tr>
							<tr>
								<td height="50" width="60%">
									出版社：<%=book.getPress()%></td>
							</tr>
							<tr>
								<td height="50" width="60%">
									定价：<%=book.getBprice()%>
								</td>
							</tr>
							<tr>
								<td height="50" width="60%">
									类型：
									<select name="select">
										<c:forEach items="${applicationScope.bookTypes}" var="type">
											<option>
												<c:out value="${type.typeName}" />
											</option>
										</c:forEach>
									</select>

								</td>
							</tr>
							<tr>
								<td colspan="2">
									<hr />
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<input type="submit" name="Submit" value="下一步" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<div align="center"><jsp:include flush="true"
								page="tail.jsp"></jsp:include></div>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
